import Vue from 'vue'
import Vuex from 'vuex'
import VuexPersistence from 'vuex-persist'

// import appModule from './module/app'

const vuexLocal = new VuexPersistence({
  storage: window.localStorage
})

Vue.use(Vuex)

export default new Vuex.Store({
  devtools: process.env.NODE_ENV == 'development',
  strict: true,
  state: {
    ak: ''
  },
  mutations: {
    SET_AK(state, payload) {
      state.ak = payload
    }
  },
  plugins: [vuexLocal.plugin]
})
